package com.example.demo.domain.exam;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.annotation.Display;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.RequiredArgsConstructor;

@Data
@RequiredArgsConstructor
@TableName(value = "exam_user_answer_option")
public class ExamUserAnswerOption {

    @Display("标识")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Display("用户答案标识")
    @TableField(value = "answer_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long answerId;

    @Display("答案选项标识")
    @TableField(value = "option_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long optionId;

}
